package cn.easy.kitchen.bean;

import java.math.BigDecimal;

/**
 * 推荐菜谱统计bean
 */
public class BomNutritionBean {
    /**菜名*/
    private String name;
    /**蛋白质*/
    private BigDecimal protein;
    /**脂肪*/
    private BigDecimal fat;
    /**糖*/
    private BigDecimal sugar;
    /**膳食纤维*/
    private BigDecimal dietaryFiber;
    /**微量元素*/
    private BigDecimal traceElement;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getProtein() {
        return protein;
    }

    public void setProtein(BigDecimal protein) {
        this.protein = protein;
    }

    public BigDecimal getFat() {
        return fat;
    }

    public void setFat(BigDecimal fat) {
        this.fat = fat;
    }

    public BigDecimal getSugar() {
        return sugar;
    }

    public void setSugar(BigDecimal sugar) {
        this.sugar = sugar;
    }

    public BigDecimal getDietaryFiber() {
        return dietaryFiber;
    }

    public void setDietaryFiber(BigDecimal dietaryFiber) {
        this.dietaryFiber = dietaryFiber;
    }

    public BigDecimal getTraceElement() {
        return traceElement == null ? BigDecimal.ZERO : traceElement;
    }

    public void setTraceElement(BigDecimal traceElement) {
        this.traceElement = traceElement;
    }
}
